package com.shopAuth.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.shopAuth.feign.Facotry.AppSessionFactory;

import shopBean.common.bean.RestResult;

@FeignClient(value="service-shopAuth",fallbackFactory=AppSessionFactory.class)
public interface AppSessionFeign {

	@RequestMapping("/appSession/createSession.api")
	public RestResult createSession(@RequestParam(value="tel")String tel,@RequestParam(value="loginIp") String loginIp);
	@RequestMapping("/appSession/auth.api")
	public RestResult auth(@RequestParam(value="token")String token);
}
